module.exports = ({ env }) => ({
  defaultConnection: 'default',
  connections: {
    default: {
      connector: 'bookshelf',
      settings: {
        client: 'mysql' ,
        host: env('DATABASE_HOST', 'localhost') , //host:数据库所在的主机地址，默认是localhost;如果strapi应用部署的服务器和数据库同处一个服务器的话，这里也可以写成localhost
        port: env.int('DATABASE_PORT', 3306),
        database: env('DATABASE_NAME', 'blog'),
        username: env('DATABASE_USERNAME', 'blog'),
        password: env('DATABASE_PASSWORD', 'otsyw7e4fnah3ccdf')
      } , 
      options: {
 
      },
    },
  },
});
